<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const h = parseFloat(prompt('请输入身高(cm)'))
        const w = parseFloat(prompt('请输入体重(斤)'))
        const t = (h - 108) * 2
        if (w <= t + 10 && w >= t - 10) {
            alert('标准体重')
        } else if(w > t + 10) {
            alert('超重')
        } else {
            alert('偏瘦')
        }
    </script>
</body>
</html>